package com.zhbr.mvp.model;

import com.zhbr.common.rx.RxUtil;
import com.zhbr.mvp.base.model.BaseModel;
import com.zhbr.mvp.contract.AlterAccountContract;

import java.util.Map;

import rx.Subscriber;
import rx.Subscription;

import static com.zhbr.common.rx.RxUtil.applySchedulers;

public class AlterAccountModel extends BaseModel implements AlterAccountContract.Model {


    @Override
    public void getAccountInfo(Subscriber subscriber) {
        Subscription subscription;
        subscription=mApi.getAccountInfo().compose(applySchedulers()).compose(RxUtil.handleResult()).subscribe(subscriber);
        addSubscribe(subscription);
    }

    @Override
    public void alterAccount(Map param,Subscriber subscriberß) {

    }
}
